package com.psw.monitor.geserialport.em;

/**
 * @author yangke3
 * @date Created at 2019-10-13
 */
public enum AlarmType {

    /**
     * 未报警
     */
    UN_ALARM_0("0", "未报警"),

    UN_ALARM("1", "未报警"),

    /**
     * 超过上限和下限都报警
     */
    ALL_LIMIT("2", "超过上限和下限都报警"),

    /**
     * 超过上限报警
     */
    TOP_LIMIT("3", "超过上限报警"),

    /**
     * 超过下限报警
     */
    BOTTOM_LIMIT("4", "超过下限报警"),
    OPEN("5", "触点断开报警"),
    CLOSE("6", "触点闭合报警"),

    ;
    private String code;

    private String desc;

    public String getCode() {
        return code;
    }

    AlarmType(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
